package com.ledi.guns.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * </p>
 *
 * @author ledi
 * @since 2017-11-30
 */
@TableName("t_bill_alipay")
public class BillAlipay extends Model<BillAlipay> {

	private static final long	serialVersionUID	= 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long				id;
	/**
	 * 账单明细ID
	 */
	@TableField("bill_detail_id")
	private String				billDetailId;
	/**
	 * 付款时，学校PID
	 */
	@TableField("school_pid")
	private String				schoolPid;
	/**
	 * 支付宝-中小学-教育缴费生成的学生唯一编号
	 */
	@TableField("alipay_student_no")
	private String				alipayStudentNo;
	/**
	 * 支付宝－中小学－教育缴费的账单号
	 */
	@TableField("alipay_order_no")
	private String				alipayOrderNo;
	/**
	 * 付款人支付宝账号
	 */
	@TableField("alipay_person_pid")
	private String				alipayPersonPid;
	/**
	 * 家长付款时间
	 */
	@TableField("pay_time")
	private Date				payTime;
	/**
	 * 是否成功（0：未发送，1：发送成功，3：发送失败，4：撤销账单，5：支付成功）
	 */
	@TableField("bill_status")
	private Integer				billStatus;
	@TableField("create_time")
	private Date				createTime;
	/**
	 * 备注
	 */
	private String				comment;
	
	/**
	 * 账单截止时间
	 */
	@TableField("bill_end_time")
	private Date				billEndTime;

	public Long getId() {

		return id;
	}

	public void setId(Long id) {

		this.id = id;
	}

	public String getBillDetailId() {

		return billDetailId;
	}

	public void setBillDetailId(String billDetailId) {

		this.billDetailId = billDetailId;
	}

	public String getSchoolPid() {

		return schoolPid;
	}

	public void setSchoolPid(String schoolPid) {

		this.schoolPid = schoolPid;
	}

	public String getAlipayStudentNo() {

		return alipayStudentNo;
	}

	public void setAlipayStudentNo(String alipayStudentNo) {

		this.alipayStudentNo = alipayStudentNo;
	}

	public String getAlipayOrderNo() {

		return alipayOrderNo;
	}

	public void setAlipayOrderNo(String alipayOrderNo) {

		this.alipayOrderNo = alipayOrderNo;
	}

	public String getAlipayPersonPid() {

		return alipayPersonPid;
	}

	public void setAlipayPersonPid(String alipayPersonPid) {

		this.alipayPersonPid = alipayPersonPid;
	}

	public Date getPayTime() {

		return payTime;
	}

	public void setPayTime(Date payTime) {

		this.payTime = payTime;
	}

	public Integer getBillStatus() {

		return billStatus;
	}

	public void setBillStatus(Integer billStatus) {

		this.billStatus = billStatus;
	}

	public Date getCreateTime() {

		return createTime;
	}

	public void setCreateTime(Date createTime) {

		this.createTime = createTime;
	}

	public String getComment() {

		return comment;
	}

	public void setComment(String comment) {

		this.comment = comment;
	}

	@Override
	protected Serializable pkVal() {

		return this.id;
	}

	public Date getBillEndTime() {
		return billEndTime;
	}

	public void setBillEndTime(Date billEndTime) {
		this.billEndTime = billEndTime;
	}

	@Override
	public String toString() {

		return "BillAlipay{" +
				"id=" + id +
				", billDetailId=" + billDetailId +
				", schoolPid=" + schoolPid +
				", alipayStudentNo=" + alipayStudentNo +
				", alipayOrderNo=" + alipayOrderNo +
				", alipayPersonPid=" + alipayPersonPid +
				", payTime=" + payTime +
				", billStatus=" + billStatus +
				", createTime=" + createTime +
				", comment=" + comment +
				"}";
	}
}
